	package edu.webtek.cloudreq;

import org.jdom2.Document;
import org.jdom2.Element;

public class ReqSellItems extends ReqBase{
	private final String shopKey;
	private final int itemID;
	private final int custommerID;
	private final int saleAmount;

	public ReqSellItems(String shopKey, int itemID, int custommerID,
			int saleAmount) {
		super();
		this.shopKey = shopKey;
		this.itemID = itemID;
		this.custommerID = custommerID;
		this.saleAmount = saleAmount;
	}
	@Override
	public Document toDocument() {
		Element shopkey 		= createElement("shopKey", 	  this.shopKey);
		Element itemID 			= createElement("itemID", 	  this.itemID);
		Element customerID 		= createElement("customerID", this.custommerID);
		Element salesAmmount 	= createElement("saleAmount", this.saleAmount);
		
		Element sales		    = createElement("sales", shopkey, itemID, customerID, salesAmmount);
		
		return new Document(sales);
	}
	
	
}
